package com.web.exiaodao.business.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;
import com.web.webstart.base.entity.BaseEntity;

/**
 * 
* @ClassName: fanliRules 
* @Description: 返利-合约表定义表
* @author eason
* @date 2017-02-13 14:31:04
*
 */
@Entity
@Table(name = "tb_xa_fanlirules")
@ApiModel(value="返利-合约表定义表")
public class FanliRules extends BaseEntity{

	private static final long serialVersionUID = 1L;
	
	@ApiModelProperty(value="商家编号,商家编号，外键，关联商家表")
	private Long busId;
	@ApiModelProperty(value="商家服务费利率,商家服务费利率，商家服务费利率=平台返利率+用户返利率")
	private Double busfaliRate;
	@ApiModelProperty(value="平台返利率,平台返利率")
	private Double platformRaliRate;
	@ApiModelProperty(value="用户返利率,用户返利率")
	private Double userFaliRate;
	@ApiModelProperty(value="返利结算时长,返利结算时长（天）")
	private String faliDays;
		
	
	public void setBusId(Long busId){
		this.busId=busId;
	}
	
	@Column(nullable=true,length=20)
	public Long getBusId(){
		return busId;
	}
	public void setBusfaliRate(Double busfaliRate){
		this.busfaliRate=busfaliRate;
	}
	
	@Column(nullable=true,length=50)
	public Double getBusfaliRate(){
		return busfaliRate;
	}
	public void setPlatformRaliRate(Double platformRaliRate){
		this.platformRaliRate=platformRaliRate;
	}
	
	@Column(nullable=true,length=50)
	public Double getPlatformRaliRate(){
		return platformRaliRate;
	}
	public void setUserFaliRate(Double userFaliRate){
		this.userFaliRate=userFaliRate;
	}
	
	@Column(nullable=true,length=50)
	public Double getUserFaliRate(){
		return userFaliRate;
	}
	public void setFaliDays(String faliDays){
		this.faliDays=faliDays;
	}
	
	@Column(nullable=true,length=255)
	public String getFaliDays(){
		return faliDays;
	}
		
	@Override
    public String toString() {
        return "FanliRules[busId=" + busId + ", busfaliRate=" + busfaliRate
                + ", platformRaliRate=" + platformRaliRate + ", userFaliRate=" + userFaliRate + ", faliDays=" + faliDays
                + "]";
    }
}
